<template>
	<view class="ys">
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				<view class="time">
					<text class="day">06-14</text>
					<text class="year">2024</text>
				</view>
				<view class="infobox">
					<view class="info">
						<view class="left">
							<view class="name">
								世纪佳缘3栋403室
							</view>
							<view class="user">
								唯一道 15311110000
							</view>
						</view>
						<view class="right">
							<text>￥150.00</text>
							<text class="status">待缴费</text>
						</view>
					</view>
					<uni-icons type="right"></uni-icons>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [1, 2, 3, 4]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background: #f2f2f2;
		padding-top: 10px;
	}

	.list {
		padding: 0 10px;

		.item {
			margin-bottom: 10px;
			background: #fff;
			padding: 10px;
			box-sizing: border-box;
			border-radius: 5px;
			display: flex;
			align-items: center;

			.time {
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				font-size: 12px;
				width: 50px;
				height: 50px;
				background: #fc7941;
				color: #fff;
				border-radius: 5px;

				.day {
					font-weight: bold;
					margin-bottom: 3px;
				}
			}

			.infobox {
				display: flex;
				align-items: center;
				justify-content: space-between;
				width: calc(100% - 50px);
				padding-left: 10px;
				box-sizing: border-box;

				.info {
					display: flex;
					align-items: center;
					justify-content: space-between;
					font-size: 14px;
					width: calc(100% - 20px);
					padding-right: 5px;
					box-sizing: border-box;

					.left {
						width: 70%;
					}

					.name {
						white-space: nowrap;
						overflow: hidden;
						text-overflow: ellipsis;
					}

					.user {
						margin-top: 10px;
						font-size: 12px;
						color: #777;
					}

					.right {
						display: flex;
						flex-direction: column;
						align-items: flex-end;
						font-size: 12px;
						color: #fc7941;

						.status {
							margin-top: 5px;
						}
					}

				}
			}

		}
	}
</style>